﻿package frEngine.primitives.base
{
    import baseEngine.basic.*;
    import baseEngine.core.*;
    import baseEngine.system.*;
    import frEngine.animateControler.*;
    import frEngine.animateControler.keyframe.*;
    import frEngine.shader.*;

    public class LineBase extends Mesh3D
    {
        protected var drawInstance:DrawShapeControler;

        public function LineBase(param1:String, param2:Boolean, param3:RenderList)
        {
            super(param1, param2, param3);
            this.drawInstance = this.getAnimateControlerInstance(AnimateControlerType.DrawShapeControler) as DrawShapeControler;
            return;
        }// end function

        override public function clearAllControlers(param1:Boolean) : void
        {
            super.clearAllControlers(param1);
            this.drawInstance = this.getAnimateControlerInstance(AnimateControlerType.DrawShapeControler) as DrawShapeControler;
            return;
        }// end function

        override public function draw(param1:Boolean = true, param2:ShaderBase = null) : void
        {
            if (this.visible)
            {
                Device3D.worldView.copyFrom(this.world);
                Device3D.worldView.append(Device3D.view);
            }
            super.draw(param1, param2);
            return;
        }// end function

    }
}
